import request from '@/utils/request'

// 查询订单退款列表
export function listRefundOrder(query) {
  return request({
    url: '/admin/refundOrder/list',
    method: 'get',
    params: query
  })
}

// 查询订单退款详细
export function getRefundOrder(refundNo) {
  return request({
    url: '/admin/refundOrder/' + refundNo,
    method: 'get'
  })
}

// 新增订单退款
export function addRefundOrder(data) {
  return request({
    url: '/admin/refundOrder',
    method: 'post',
    data: data
  })
}

// 修改订单退款
export function updateRefundOrder(data) {
  return request({
    url: '/admin/refundOrder',
    method: 'put',
    data: data
  })
}

// 删除订单退款
export function delRefundOrder(refundNo) {
  return request({
    url: '/admin/refundOrder/' + refundNo,
    method: 'delete'
  })
}

// 退款审核
export function auditRefundOrder(params) {
  return request({
    url: '/admin/refundOrder/refund',
    method: 'get',
    params
  })
}